From 8bbec13c641b5a50e3991f3a3c762f29bc3b13f2 Mon Sep 17 00:00:00 2001
From: real-zephex <zephex-1@outlook.com>
Date: Sat, 23 Mar 2024 13:31:41 +0530
Subject: fix: requests are revalidated after 30 mins. this prevents stale data
 from being served

---
 src/app/info/[id]/page.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/app/info/[id]/page.jsx')

diff --git a/src/app/info/[id]/page.jsx b/src/app/info/[id]/page.jsx
index 4cede90..dda7a49 100644
--- a/src/app/info/[id]/page.jsx
+++ b/src/app/info/[id]/page.jsx
@@ -42,7 +42,8 @@ export default async function AnimeInfo({ params }) {
 
 async function getAnimeInfo(anime_id) {
 	const res = await fetch(
-		"https://anime-sensei-api.vercel.app/anime/gogoanime/info/" + anime_id
+		"https://anime-sensei-api.vercel.app/anime/gogoanime/info/" + anime_id,
+		{ next: { revalidate: 1800 } }
 	);
 	const data = res.json();
 	return data;
-- 
cgit v1.2.3

